<template>
  <el-button @click="_set">set</el-button>
  <el-button @click="_remove">remove</el-button>
  <el-button @click="_get">get</el-button>
</template>
<script setup lang="ts">

import {useMorghulisCookies} from "../../morghulis/hooks/cookies.ts";
import {onMounted} from "vue";

const {get, set, remove, load} = useMorghulisCookies()

onMounted(() => {
  set('handlers', {})
})


function _set() {
  set('handlers.test', 'lyp')
}

function _get() {
  const obj = get('handlers.test')
  console.log(obj)
}


function _remove() {
  remove('handlers.test')
}

</script>



